Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clarify resolve typo suggestion #57477

Merged
merged 1 commit into from Jan 14, 2019
Merged

Conversation

euclio
Copy link
Contributor

@euclio euclio commented Jan 9, 2019

Include the kind of the binding that we're suggesting, and use a
structured suggestion.

Fixes #53445.

Include the kind of the binding that we're suggesting, and use a
structured suggestion.
@rust-highfive
Copy link
Collaborator

r? @zackmdavis

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 9, 2019
@zackmdavis
Copy link
Member

I'll review this tonight

let suggestion = this.lookup_typo_candidate(path, ns, is_expected, span);
if let Some(suggestion) = suggestion {
let msg = format!(
"{} {} with a similar name exists",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this wording! (I had been unhappy with "did you mean"—the docs even say we don't want to phrase it as a question—but I wasn't sure what to replace it with.

@zackmdavis
Copy link
Member

I'll review this tonight

That was slightly optimistic, but only by a day

@euclio thanks!! 💖 ✏️

@bors r+

@bors
Copy link
Contributor

bors commented Jan 13, 2019

📌 Commit 404ad50 has been approved by zackmdavis

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 13, 2019
Centril added a commit to Centril/rust that referenced this pull request Jan 14, 2019
…ckmdavis

clarify resolve typo suggestion

Include the kind of the binding that we're suggesting, and use a
structured suggestion.

Fixes rust-lang#53445.
Centril added a commit to Centril/rust that referenced this pull request Jan 14, 2019
…ckmdavis

clarify resolve typo suggestion

Include the kind of the binding that we're suggesting, and use a
structured suggestion.

Fixes rust-lang#53445.
bors added a commit that referenced this pull request Jan 14, 2019
Rollup of 6 pull requests

Successful merges:

 - #57232 (Parallelize and optimize parts of HIR map creation)
 - #57418 (MetadataOnlyCodegenBackend: run the collector only once)
 - #57465 (Stabilize cfg_target_vendor)
 - #57477 (clarify resolve typo suggestion)
 - #57556 (privacy: Fix private-in-public check for existential types)
 - #57584 (Remove the `connect_timeout_unroutable` test.)

Failed merges:

r? @ghost
@bors bors merged commit 404ad50 into rust-lang:master Jan 14, 2019
@euclio euclio deleted the clarify-lev-suggestion branch January 14, 2019 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants